#@cmsLayout()

#define cmsContent()
<div class="cms-breadcrumb">
	<i class="layui-icon layui-icon-flag"></i>
	<span class="layui-breadcrumb">
	  	<a href="">栏目管理</a>
	  	<a><cite>编辑栏目</cite></a>
	</span>
</div>

<div class="body-card layui-card">
	<form id="updateColumn" class="layui-form layui-form-pane" action="#(ctx)/cmsColumn/updateColumn" method="post" onsubmit="return false;">
  		<input class="layui-hide" type="text" name="id" value="#(column.id)">
  		<div class="layui-form-item">
    		<label class="layui-form-label">栏目名称</label>
    		<div class="layui-input-inline">
      			<input type="text" name="name" class="layui-input" value="#(column.name)">
    		</div>
    		<div class="layui-form-mid layui-word-aux"><span class="color-warn">*</span></div>
  		</div>
  		<div class="layui-form-item">
    		<label class="layui-form-label">英文标识</label>
    		<div class="layui-input-inline">
      			<input type="text" name="enName" class="layui-input layui-disabled" value="#(column.enName)">
    		</div>
    		<div class="layui-form-mid layui-word-aux"><span class="color-warn">*</span>只能是英文字母和数字</div>
  		</div>
  		<div class="layui-form-item">
    		<label class="layui-form-label">父栏目</label>
    		<div class="layui-input-inline">
      			<select name="parent">
				  	<option value="0">一级栏目</option>
				  	#for(x : columnList)
				  	<option value="#(x.id)" #if(x.id==column.parent) selected #end>#(x.name)</option>
				  	#end
				</select>
    		</div>
  		</div>
  		<div class="layui-form-item">
    		<div class="layui-input-block">
      			<button class="layui-btn" onclick="ajaxSaveForm('#updateColumn')">立即提交</button>
      			<a class="layui-btn layui-btn-primary" href="javascript:history.go(-1);">返回</a>
    		</div>
  		</div>
  	</form>
</div>

#@jsInit()
#end